package com.dpp.service;

import com.dpp.dto.OrderDTO;
import com.dpp.entity.Orders;
import com.dpp.result.Result;
import com.dpp.vo.HistoryOrderVO;
import com.dpp.vo.HomeLists;
import com.dpp.vo.HomeVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDateTime;
import java.util.List;

public interface OrderService {
    String insert(OrderDTO orderDTO, Integer status);


    HistoryOrderVO selectHisOrders();


    void download(String url, HttpServletResponse response);

    void cancel(Integer id, Integer cancel);

    Result take(Integer id, Integer collected);

    Result arrive(Integer id, Integer reached);

    void confirm(Integer id, Integer completed);

    HomeLists selectAll();

    Result<String> takeOrder(Integer id);

    Orders selectOrderById(Integer id);

    Result withdraw(String openid);

    void update(Integer id, LocalDateTime time1);

    HistoryOrderVO selectPathOrders(String path);

    void image(Integer id, MultipartFile image);

    Result<String> takeCancel(Integer id);
}
